package com.nervenets.web.entity;

import com.nervenets.utils.JodaUtils;
import lombok.Data;

import java.io.Serializable;

@Data
public class UserToken implements Serializable {
    private long userId;
    // 0-WX；1-APP；2-ADMIN；
    private int tokenType;
    private int time = JodaUtils.getTimestamp() + 0x93a80;

    public UserToken() {
    }

    public UserToken(long userId) {
        this.userId = userId;
    }
}
